import Vue from "vue";
import App from "./App.vue";
import router from "./router";
// import VueRouter from "vue-router";
import store from "./store";
import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css";
import HmButton from "./components/HmButton.vue";
Vue.component("HmButton", HmButton);
Vue.config.productionTip = false;

Vue.prototype.$bus = new Vue();

// 全局注册

Vue.use(ElementUI);

new Vue({
  router,
  store,
  render: (h) => h(App),
  // beforeCreate() {
  //   Vue.prototype.$bus = this;
  // },
}).$mount("#app");
